﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Web.Controller" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%var lngs = v.data("lngs") as String; %>
<%var read = v.data("read") as System.Data.DataRow; %>

    <div class="ybbw">
        <div style="background-image: url('#{typeread.typepic}'); background-position: center center;" class="ybbbanner"></div>
    </div>
    <div class="ybbw ybbmt24">
        <div class="ybbcenter ybbw1000">
            <div class="ybbfl ybbw217" style="margin-bottom: 10px;">
                <%var typeread = v.data("typeread") as TypeList; %>
                <div class="ybbflct">
                    <%if (typeread.topid == 0)
                      { %>
                    <%=typeread.typename %>
                    <%}
                      else
                      { %>
                    <%=TypeList.findById(typeread.topid).typename %>
                    <%} %>
                </div>
                <div class="ybbflmenu">
                    <ul>
                         <%var list = new List<TypeList>(); %>
                        <%if (typeread.upid == 0)
                          {
                              list = TypeList.find(" upid = " + typeread.Id + " order by pid asc,id asc").list(); 
                          }else{
                              list = TypeList.find(" upid = " + typeread.upid + " order by pid asc,id asc").list(); 
                          } %>
                        <%foreach(var row in list){ %>
                        <li><a <%if(row.Id==typeread.Id){ %>class="current"<%} %> href="<%=row.glink %>"><span><%=row.typename %></span></a></li><%} %>
                    </ul>
                </div>
            </div>
            <div class="ybbfr ybbw712">
                <div class="ybbposition">
                    #{position}：<a href='#{dir}'>#{hometitle}</a>&nbsp;&gt;&gt;&nbsp;#{daohang}
                </div>
                <div class="ybbart">
                    #{typeread.typename}
                </div>
                <%var pagelist = v.data("pagelist") as DataPage<Document>; %>
                <div class="ybbgcontent">
                    <%if(pagelist.RecordCount>0){ %>
                    <div class="ybbyjxslist3">
                        <ul>
                          <%foreach(var row in pagelist.Results){ %>
                            <li><a href="<%=row.readlink %>" title="<%=row.title %>"><img src="<%=YBBCommon.CacheImg(row.pic,"220|159||") %>" /></a><br /><span><%=row.title %></span></li><%} %>
                        </ul>
                        <div class="ybbclear"></div>
                    </div>
                    <div class="ybbcenter" style="width: 500px; text-align: center; margin-top: 20px;">
                        #{page}
                    </div>
                    <%}else{ %>
                    暂无相关产品
                    <%} %>
                </div>
            </div>
            <div class="ybbclear"></div>
        </div>
    </div>